package com.tuijian.vo;

/**
 * 封装一个cell数据
 */
public class CellData{
    private String rowkey;
    private String family;
    private String qualifier;
    private Long timestamp;
    private Object value;
    public CellData() {
    }
    public CellData(String family, String qualifier, Object value) {
        this.family = family;
        this.qualifier = qualifier;
        this.value = value;
    }
    /**
     *
     * @param family
     * @param qualifier
     * @param rowkey
     * @param timestamp
     * @param value
     */
    public CellData(String family, String qualifier, String rowkey, Long timestamp, Object value) {
        this.family = family;
        this.qualifier = qualifier;
        this.value = value;
        this.timestamp = timestamp;
        this.rowkey = rowkey;
    }
    public String getRowkey() {
        return rowkey;
    }
    public void setRowkey(String rowkey) {
        this.rowkey = rowkey;
    }
    public String getFamily() {
        return family;
    }
    public void setFamily(String family) {
        this.family = family;
    }
    public String getQualifier() {
        return qualifier;
    }
    public void setQualifier(String qualifier) {
        this.qualifier = qualifier;
    }
    public Object getValue() {
        return value;
    }
    public void setValue(Object value) {
        this.value = value;
    }
    public Long getTimestamp() {
        return timestamp;
    }
    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }
    @Override
    public String toString() {
        return "CellData{" +
                "rowkey='" + rowkey + '\'' +
                ", family='" + family + '\'' +
                ", qualifier='" + qualifier + '\'' +
                ", timestamp=" + timestamp +
                ", value=" + value +
                '}';
    }
}
